package com.ctg.itrdc.sysmgr.portal.data.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.pasp.core.Entity;


@Table(name = "OPERATORS")
public class Operators extends Entity<Long> {
	private static final long serialVersionUID = -2811347047325737314L;


	/**
	 * 经营主体对应的机构标识
	 */
	@Id
	@Column(name = "ORG_ID")
	private Long orgId;

	/**
	 * 经营主体编码：12位，类型码1位（J)、地区码6位、序列码5位三部分组成
	 */
	@Column(name = "OPERATORS_NBR")
	private String operatorsNbr;

	/**
	 * 区分经营主体是否是连锁
	 */
	@Column(name = "IS_CHAIN")
	private Short isChain;

	/**
	 * 经营主体简称：如国美电器有限公司，简称为"国美电器"；简称中不含地域信息、不含公司形式
	 */
	@Column(name = "OPERATORS_SNAME")
	private String operatorsSname;

	/**
	 * 经营主体级别，LOVB
	 */
	@Column(name = "OPERATORS_LEVEL")
	private String operatorsLevel;

	/**
	 * 经营主体对应组织的关联参与人标识,参与人唯一标识
	 */
	@Column(name = "PARTY_ID")
	private Long partyId;

	/**
	 * 创建人
	 */
	@Column(name = "CREATE_STAFF")
	private Long createStaff;

	/**
	 * 修改时间
	 */
	@Column(name = "UPDATE_DATE")
	private Timestamp updateDate;

	/**
	 * 经营主体状态时间
	 */
	@Column(name = "STATUS_DATE")
	private Timestamp statusDate;

	/**
	 * 法定代表人
	 */
	@Column(name = "LEGAL_REPR")
	private String legalRepr;

	/**
	 * 租户标识。
	 */
	@Column(name = "TENANT_ID")
	private Long tenantId;

	/**
	 * 公用管理区域标识,记录区域唯一标识
	 */
	@Column(name = "COMMON_REGION_ID")
	private Long commonRegionId;

	/**
	 * 经营主体名称：自营渠道：中国电信**分公司社会渠道：营业执照中注册的公司名称或法人
	 */
	@Column(name = "OPERATORS_NAME")
	private String operatorsName;

	/**
	 * 上级经营主体标识
	 */
	@Column(name = "PARENT_OPER_ID")
	private Long parentOperId;

	/**
	 * 分片键1，固定值-1。
	 */
	@Column(name = "SHARD1")
	private Long shard1;

	/**
	 * 修改人
	 */
	@Column(name = "UPDATE_STAFF")
	private Long updateStaff;

	/**
	 * 经营主体描述
	 */
	@Column(name = "OPERATORS_DESC")
	private String operatorsDesc;

	/**
	 * 分片键2，固定值-1。
	 */
	@Column(name = "SHARD2")
	private Long shard2;

	/**
	 * 连锁经营主体的类型，LOVB，区分是全国级连锁、省级连锁、地市级连锁、县级连锁
	 */
	@Column(name = "CHAIN_TYPE")
	private String chainType;

	/**
	 * 经营主体状态
	 */
	@Column(name = "STATUS_CD")
	private String statusCd;

	/**
	 * 创建时间
	 */
	@Column(name = "CREATE_DATE")
	private Timestamp createDate;


	public void setOrgId(Long orgId){
		this.orgId = orgId;
	}

	public Long getOrgId(){
		return this.orgId;
	}

	public void setOperatorsNbr(String operatorsNbr){
		this.operatorsNbr = operatorsNbr;
	}

	public String getOperatorsNbr(){
		return this.operatorsNbr;
	}

	public void setIsChain(Short isChain){
		this.isChain = isChain;
	}

	public Short getIsChain(){
		return this.isChain;
	}

	public void setOperatorsSname(String operatorsSname){
		this.operatorsSname = operatorsSname;
	}

	public String getOperatorsSname(){
		return this.operatorsSname;
	}

	public void setOperatorsLevel(String operatorsLevel){
		this.operatorsLevel = operatorsLevel;
	}

	public String getOperatorsLevel(){
		return this.operatorsLevel;
	}

	public void setPartyId(Long partyId){
		this.partyId = partyId;
	}

	public Long getPartyId(){
		return this.partyId;
	}

	public void setCreateStaff(Long createStaff){
		this.createStaff = createStaff;
	}

	public Long getCreateStaff(){
		return this.createStaff;
	}

	public void setUpdateDate(Timestamp updateDate){
		this.updateDate = updateDate;
	}

	public Timestamp getUpdateDate(){
		return this.updateDate;
	}

	public void setStatusDate(Timestamp statusDate){
		this.statusDate = statusDate;
	}

	public Timestamp getStatusDate(){
		return this.statusDate;
	}

	public void setLegalRepr(String legalRepr){
		this.legalRepr = legalRepr;
	}

	public String getLegalRepr(){
		return this.legalRepr;
	}

	public void setTenantId(Long tenantId){
		this.tenantId = tenantId;
	}

	public Long getTenantId(){
		return this.tenantId;
	}

	public void setCommonRegionId(Long commonRegionId){
		this.commonRegionId = commonRegionId;
	}

	public Long getCommonRegionId(){
		return this.commonRegionId;
	}

	public void setOperatorsName(String operatorsName){
		this.operatorsName = operatorsName;
	}

	public String getOperatorsName(){
		return this.operatorsName;
	}

	public void setParentOperId(Long parentOperId){
		this.parentOperId = parentOperId;
	}

	public Long getParentOperId(){
		return this.parentOperId;
	}

	public void setShard1(Long shard1){
		this.shard1 = shard1;
	}

	public Long getShard1(){
		return this.shard1;
	}

	public void setUpdateStaff(Long updateStaff){
		this.updateStaff = updateStaff;
	}

	public Long getUpdateStaff(){
		return this.updateStaff;
	}

	public void setOperatorsDesc(String operatorsDesc){
		this.operatorsDesc = operatorsDesc;
	}

	public String getOperatorsDesc(){
		return this.operatorsDesc;
	}

	public void setShard2(Long shard2){
		this.shard2 = shard2;
	}

	public Long getShard2(){
		return this.shard2;
	}

	public void setChainType(String chainType){
		this.chainType = chainType;
	}

	public String getChainType(){
		return this.chainType;
	}

	public void setStatusCd(String statusCd){
		this.statusCd = statusCd;
	}

	public String getStatusCd(){
		return this.statusCd;
	}

	public void setCreateDate(Timestamp createDate){
		this.createDate = createDate;
	}

	public Timestamp getCreateDate(){
		return this.createDate;
	}

	@Override
	public Long getId() {
		return orgId;
	}
	
	@Override
	public void setId(Long id) {
		this.orgId = id;
	}
	
	public Operators() {
		super();
    }
}
